<?php

namespace app\system\controller;

use app\Request;
use app\system\service\MenuService;


class Menu
{
    protected $menuService;

    public function __construct(MenuService $menuService)
    {
        $this->menuService = $menuService;
    }

    /**
     * 描述:菜单列表
     * 参数:{}
     * 返回:
     * 作者:W
     */
    public function menuList(Request $request)
    {
        return $this->menuService->getMenuList($request);
    }

    /**
     * 描述:保存菜单
     * 参数:{}
     * 返回:
     * 作者:W
     */
    public function saveMenu(Request $request)
    {
        return $this->menuService->saveMenu($request);

    }

    /**
     * 描述:更新菜单
     * 参数:{}
     * 返回:
     * 作者:W
     */
    public function updateMenu(Request $request)
    {
        return $this->menuService->updateMenu($request);
    }

    /**
     * 描述:删除菜单
     * 参数:{}
     * 返回:
     * 作者:W
     */
    public function deleteMenu(Request $request)
    {
        return $this->menuService->deleteMenu($request);
    }
}